<%= error_messages_for 'test_suite' %>

<!--[form:test_suite]-->
<p><label for="test_suite_name">Name</label><br/>
<%= text_field 'test_suite', 'name'  %></p>

<h3>Builds:</h3>
<% for build in @build_types do %>
<%
  if !@test_suite.build_types.nil? and @test_suite.build_types.include?(build) then
    selected = 'checked'
  else
    selected = ''
  end
%>
  <input type="checkbox"
         name="builds[]"
         value="<%= build.id %>"
         <%=selected%>>
  <%= build.name %>-<%= build.architecture.name %>
  </input><br/>
<% end %>

<h3>Tests:</h3>
<% for test in @test_types do %>
<%
  if !@test_suite.test_types.nil? and @test_suite.test_types.include?(test) then
    selected = 'checked'
  else
    selected = ''
  end
%>
  <input type="checkbox"
         name="tests[]"
         value="<%= test.id %>"
         <%=selected%>>
  <%= test.name %>-<%= test.build_type.architecture.name %>
  </input><br/>
<% end %>

<br/>

<!--[eoform:test_suite]-->

